package mybatis.mapper;

import mybatis.pojo.Customer;
import mybatis.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

import java.util.List;
public interface UserMapper {
    List<User> findAllUser();
    User findById(Integer id);
    int addUser(User user);
    void addUsers(List<User> users);
    @Update("update users set name=#{name},age=#{age} where id = #{id}")
    void updateById(User user);
    @Delete("delete from users where id = #{id}")
    void deleteById(Integer id);

}